package org.zfes.snowier.zbss.xzy.router.device.vedio;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.zfes.snowier.web.controller.BaseController;
import org.zfes.snowier.zbss.xzy.biz.vedio.service.IDeviceVedioDirService;
import org.zfes.snowier.zbss.xzy.vedio.VedioDirDto;
@Controller("org.zfes.snowier.zbss.xzy.router.device.vedio.VedioController") 
@RequestMapping("/api/device/video")
public class VedioController implements BaseController {

	
	@Autowired
	private IDeviceVedioDirService deviceVedioDirService;
	
	 @RequestMapping(value="/uploadVedioDir", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
	 public  @ResponseBody Object uploadVedioDir(@RequestBody  VedioDirDto vedioDirDto){
		 deviceVedioDirService.createBatch(vedioDirDto);
	    return ajaxDoneSuccess("数据操作成功 ");
	 }
	
	 @RequestMapping(value="/pushLiveId/{deviceNum}/{channelId}/{liveId}", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
	 public  @ResponseBody Object uploadVedioDir(@PathVariable("msgId")String  msgId,@PathVariable("liveId")String liveId){
		
	    return ajaxDoneSuccess("数据操作成功 ");
	 }
	 
	 
}